﻿using System;
using System.Web.Mvc;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;

namespace Nop.Web.Models.Advert
{
    public class AdvertisementModel : BaseNopEntityModel
    {
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.Name")]
        [AllowHtml]
        public string Name { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.Description")]
        [AllowHtml]
        public string Description { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.MapId")]
        [AllowHtml]
        public int MapId { get; set; }

        /// <summary>
        /// 广告类型
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.AdverType")]
        public int AdverType { get; set; }

        /// <summary>
        /// 广告位置
        /// 1.顶部
        /// 2.头部
        /// 3.页面
        /// 4.两侧
        /// 5.两侧浮动
        /// 6.底部
        /// 7.顶部拉升
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.AdverPosition")]
        public int AdverPosition { get; set; }

        /// <summary>
        /// 等级
        /// 1级：首页
        /// 2级：内页
        /// 3级：子内页
        /// 4级：未知
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.AdverLevel")]
        public virtual int AdverLevel { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.StartTime")]
        public DateTime StartTime { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.EndTime")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 广告内容
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.AdvertContent")]
        [AllowHtml]
        public string AdvertContent { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.OrderId")]
        public int OrderId { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.CreatedOnUtc")]
        [AllowHtml]
        public DateTime CreatedOnUtc { get; set; }

        /// <summary>
        ///是否是删除数据
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.Deleted")]
        public bool Deleted { get; set; }
        /// <summary>
        /// 是否发布
        /// </summary>
        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.Published")]
        public bool Published { get; set; }

        [NopResourceDisplayName("Admin.Advert.Advertisement.Fields.DisplayOrder")]
        public int DisplayOrder { get; set; }
    }
}